\hypertarget{pwm_8h}{
\section{atmega1281/low/include/pwm.h File Reference}
\label{pwm_8h}\index{atmega1281/low/include/pwm.h@{atmega1281/low/include/pwm.h}}
}
{\ttfamily \#include $<$avr/io.h$>$}\par
{\ttfamily \#include \char`\"{}nxbot.h\char`\"{}}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__nxbot__pwm_gad24a782450af78b1984c2e6459890548}{PWM\_\-FREQUENCY\_\-16M}~1
\begin{DoxyCompactList}\small\item\em 16MHz PWM frequency. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__pwm_gae9e56c710ccdbc913067cf7324aa8fa4}{PWM\_\-FREQUENCY\_\-2M}~2
\begin{DoxyCompactList}\small\item\em 2MHz PWM frequency. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__pwm_gac792ff37b641e5d467a83d512e189cc6}{PWM\_\-FREQUENCY\_\-250K}~3
\begin{DoxyCompactList}\small\item\em 250kHz PWM frequency. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__pwm_gad42a8c8ba32b1915931302bd932eebeb}{PWM\_\-FREQUENCY\_\-62K}~4
\begin{DoxyCompactList}\small\item\em 62kHz PWM frequency. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__pwm_ga177dac768e68ba08d2724797c846955e}{PWM\_\-FREQUENCY\_\-15K}~5
\begin{DoxyCompactList}\small\item\em 15kHz PWM frequency. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__pwm_ga391fa1e490bd712720989b58fa0d9904}{PWM\_\-MAX}~127
\begin{DoxyCompactList}\small\item\em Max. value applicable to PWM hardware. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__nxbot__pwm_ga89212b075245454426b93c0f0a98900b}{pwm\_\-init} (unsigned char freq)
\begin{DoxyCompactList}\small\item\em Hardware initialization of the pwm module. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__pwm_ga3ad4a487f5e13d60ca4afd576938a44b}{pwm\_\-setFreq} (unsigned char freq)
\begin{DoxyCompactList}\small\item\em Sets the frequency of the PWM signal. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__pwm_ga75b4d66479bc6b0a563251c8f18846dd}{pwm\_\-getFreq} (void)
\begin{DoxyCompactList}\small\item\em Gets the preconfigured frequency of the PWM signal. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__pwm_ga218725a2b447740d97be3970ab29c7e5}{pwm\_\-writeRight} (signed char right)
\begin{DoxyCompactList}\small\item\em Write desired PWM value for right motor. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__pwm_gaee380cd1b8aa28f7fdf34c634265bd68}{pwm\_\-writeLeft} (signed char left)
\begin{DoxyCompactList}\small\item\em Write desired PWM value for left motor. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__pwm_ga5ed6b6cdaae3da51bab8ad7cc311a255}{pwm\_\-write} (signed char left, signed char right)
\begin{DoxyCompactList}\small\item\em Write desired PWM value for both left and right motors. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
